package cn.aspart.security.pojo;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode
public class BaseResult<T> {

    private String resultCode;
    private String msg;
    private T data;


    public static <T> BaseResult<T> ok() {
        BaseResult<T> baseResult = new BaseResult<>();
        baseResult.setResultCode("ok");
        baseResult.setMsg("ok");
        return baseResult;
    }

}
